package com.bwie.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bwie.pojo.TbUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.utils.R;
import com.bwie.vo.LoginVo;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【tb_user】的数据库操作Service
* @createDate 2025-03-21 18:07:41
*/
public interface TbUserService extends IService<TbUser> {

    R getUserById(int userId);

    R login(LoginVo loginVo);

    R getUserList(PageInfoVo pageInfoVo);

    R addUser(TbUser tbUser);

    R uploadImage(MultipartFile file);

    R getUserRole(Integer userId);

    R checkUser(TbUser tbUser);

    R updateUser(TbUser tbUser);

    R deleteUserById(Integer userId);

    R deleteBatch(List<TbUser> userList);
}
